.\" Process this file with
.\" groff -man -Tascii bpkg-pkg-drop.1
.\"
.TH bpkg-pkg-drop 1 "June 2024" "bpkg 0.17.0"
.SH NAME
\fBbpkg-pkg-drop\fR \- drop package
.SH "SYNOPSIS"
.PP
\fBbpkg pkg-drop\fR|\fBdrop\fR [\fIoptions\fR] <pkg>\.\.\.
.br
\fBbpkg pkg-drop\fR|\fBdrop\fR [\fIoptions\fR] \fB--all\fR|\fB-a\fR
.br
\fBbpkg pkg-drop\fR|\fBdrop\fR [\fIoptions\fR] (\fB--all-pattern\fR
\&<pattern>)\.\.\.\fR
.SH "DESCRIPTION"
.PP
The \fBpkg-drop\fR command drops from the configuration the specified packages
(the first form), all the held packages (the second form, see
\fBbpkg-pkg-status(1)\fP), or all the held packages that match any of the
specified wildcard patterns (the third form)\. If the packages being dropped
still have dependent packages, then those will have to be dropped as well and
you will be prompted to confirm\. And if the packages being dropped have
dependency packages that would otherwise no longer be used, then they will be
dropped as well unless the \fB--keep-unused\fR|\fB-K\fR\fR option is
specified\.
.PP
The \fBpkg-drop\fR command also supports several options (described below)
that allow you to control the amount of work that will be done\.
.SH "PKG-DROP OPTIONS"
.IP "\fB--all\fR|\fB-a\fR"
Drop all held packages\.
.IP "\fB--all-pattern\fR \fIpattern\fR"
Drop held packages that match the specified wildcard pattern\. Repeat this
option to match multiple patterns\. Note that you may need to quote the
pattern to prevent expansion by your shell\.
.IP "\fB--yes\fR|\fB-y\fR"
Assume the answer to all prompts is \fByes\fR\. Note that this option does not
apply to the dropping of dependents; use \fB--drop-dependent\fR for that\.
.IP "\fB--no\fR|\fB-n\fR"
Assume the answer to all prompts is \fBno\fR\. Only makes sense together with
\fB--print-only|-p\fR\.
.IP "\fB--keep-unused\fR|\fB-K\fR"
Don't drop dependency packages that were automatically built but will no
longer be used\.
.IP "\fB--drop-dependent\fR|\fB-D\fR"
Don't warn about or ask for confirmation if dropping dependent packages\.
.IP "\fB--keep-dependent\fR"
Issue an error if attempting to drop dependent packages\.
.IP "\fB--dependent-exit\fR \fIcode\fR"
Silently exit with the specified error code if attempting to drop dependent
packages\.
.IP "\fB--disfigure-only\fR"
Disfigure all the packages but don't purge\.
.IP "\fB--print-only\fR|\fB-p\fR"
Print to \fBstdout\fR what would be done without actually doing anything\.
.IP "\fB--plan\fR \fIheader\fR"
Print the plan (even if \fB--yes\fR is specified) and start it with the
\fIheader\fR line (unless it is empty)\.
.IP "\fB--directory\fR|\fB-d\fR \fIdir\fR"
Assume configuration is in \fIdir\fR rather than in the current working
directory\.
.SH "COMMON OPTIONS"
.PP
The common options are summarized below with a more detailed description
available in \fBbpkg-common-options(1)\fP\.
.IP "\fB-v\fR"
Print essential underlying commands being executed\.
.IP "\fB-V\fR"
Print all underlying commands being executed\.
.IP "\fB--quiet\fR|\fB-q\fR"
Run quietly, only printing error messages\.
.IP "\fB--verbose\fR \fIlevel\fR"
Set the diagnostics verbosity to \fIlevel\fR between 0 and 6\.
.IP "\fB--stdout-format\fR \fIformat\fR"
Representation format to use for printing to \fBstdout\fR\.
.IP "\fB--jobs\fR|\fB-j\fR \fInum\fR"
Number of jobs to perform in parallel\.
.IP "\fB--no-result\fR"
Don't print informational messages about the outcome of performing a command
or some of its parts\.
.IP "\fB--structured-result\fR \fIfmt\fR"
Write the result of performing a command in a structured form\.
.IP "\fB--progress\fR"
Display progress indicators for long-lasting operations, such as network
transfers, building, etc\.
.IP "\fB--no-progress\fR"
Suppress progress indicators for long-lasting operations, such as network
transfers, building, etc\.
.IP "\fB--diag-color\fR"
Use color in diagnostics\.
.IP "\fB--no-diag-color\fR"
Don't use color in diagnostics\.
.IP "\fB--build\fR \fIpath\fR"
The build program to be used to build packages\.
.IP "\fB--build-option\fR \fIopt\fR"
Additional option to be passed to the build program\.
.IP "\fB--fetch\fR \fIpath\fR"
The fetch program to be used to download resources\.
.IP "\fB--fetch-option\fR \fIopt\fR"
Additional option to be passed to the fetch program\.
.IP "\fB--fetch-timeout\fR \fIsec\fR"
The fetch and fetch-like (for example, \fBgit\fR) program timeout\.
.IP "\fB--pkg-proxy\fR \fIurl\fR"
HTTP proxy server to use when fetching package manifests and archives from
remote \fBpkg\fR repositories\.
.IP "\fB--git\fR \fIpath\fR"
The git program to be used to fetch git repositories\.
.IP "\fB--git-option\fR \fIopt\fR"
Additional common option to be passed to the git program\.
.IP "\fB--sha256\fR \fIpath\fR"
The sha256 program to be used to calculate SHA256 sums\.
.IP "\fB--sha256-option\fR \fIopt\fR"
Additional option to be passed to the sha256 program\.
.IP "\fB--tar\fR \fIpath\fR"
The tar program to be used to extract package archives\.
.IP "\fB--tar-option\fR \fIopt\fR"
Additional option to be passed to the tar program\.
.IP "\fB--openssl\fR \fIpath\fR"
The openssl program to be used for crypto operations\.
.IP "\fB--openssl-option\fR \fIopt\fR"
Additional option to be passed to the openssl program\.
.IP "\fB--auth\fR \fItype\fR"
Types of repositories to authenticate\.
.IP "\fB--trust\fR \fIfingerprint\fR"
Trust repository certificate with a SHA256 \fIfingerprint\fR\.
.IP "\fB--trust-yes\fR"
Assume the answer to all authentication prompts is \fByes\fR\.
.IP "\fB--trust-no\fR"
Assume the answer to all authentication prompts is \fBno\fR\.
.IP "\fB--git-capabilities\fR \fIup\fR=\fIpc\fR"
Protocol capabilities (\fIpc\fR) for a \fBgit\fR repository URL prefix
(\fIup\fR)\.
.IP "\fB--pager\fR \fIpath\fR"
The pager program to be used to show long text\.
.IP "\fB--pager-option\fR \fIopt\fR"
Additional option to be passed to the pager program\.
.IP "\fB--options-file\fR \fIfile\fR"
Read additional options from \fIfile\fR\.
.IP "\fB--default-options\fR \fIdir\fR"
The directory to load additional default options files from\.
.IP "\fB--no-default-options\fR"
Don't load default options files\.
.IP "\fB--keep-tmp\fR"
Don't remove the \fBbpkg\fR's temporary directory at the end of the command
execution and print its path at the verbosity level 2 or higher\.
.SH "DEFAULT OPTIONS FILES"
.PP
See \fBbpkg-default-options-files(1)\fP for an overview of the default options
files\. For the \fBpkg-drop\fR command the search start directory is the
configuration directory\. The following options files are searched for in each
directory and, if found, loaded in the order listed:
.PP
.nf
bpkg\.options
bpkg-pkg-drop\.options
.fi
.PP
The following \fBpkg-drop\fR command options cannot be specified in the
default options files:
.PP
.nf
--directory|-d
.fi
.SH BUGS
Send bug reports to the users@build2.org mailing list.
.SH COPYRIGHT
Copyright (c) 2014-2024 the build2 authors.

Permission is granted to copy, distribute and/or modify this document under
the terms of the MIT License.
